Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
✅ [V2]
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Size Change: +902 B (+0.01%) Total Size: 12.1 MB 📦 View Changed
ℹ️ View Unchanged
|
|
Size Change: +899 B (+0.01%) Total Size: 12.1 MB 📦 View Changed
ℹ️ View Unchanged
|
⚡️ Lighthouse report for the deploy preview of this PR
|
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33dfb29 to
97059a0
Compare
|
Closing: Argos runs Chromium on Linux, where the |
Motivation
Argos can't catch a regression of the regional Han glyph shapes fixed by #13133: Playwright installs a single CJK font family for Chromium, so the Argos runner renders
zh-CN,zh-TW,jaandkotext with WenQuanYi Zen Hei, with the same shapes.The Argos workflow now replaces the CJK fonts of Playwright with Noto CJK, which has a regional variant for each language:
fonts-noto-cjk(Ubuntu 24.04: 61 MB download, 91 MB installed).fonts-wqy-zenheiandfonts-ipafont-gothic, installed byplaywright install --with-deps. Their fontconfig rules win over the Noto CJK ones forjaandko.It runs in the background Playwright install step, concurrently with the website build: the job waits 5 to 15 s more for it.
Test Plan
Fonts reported by Chrome DevTools Protocol (
CSS.getPlatformFontsForNode) for今令直骨角次on the Argos runner, with temporary probe commits since removed:langfonts-noto-cjkPartial coverage on the single dogfood page of #13132. Playwright's headless Chromium picks one fallback font per character for a whole page, whatever its
lang. On/tests/pages/cjk-font-tests, thelang="en"intro renders今令直骨角次first, so every paragraph shows these 6 characters with Noto Sans CJK JP. Only the characters that appear in a single language get their regional font, like the centered、and。of zh-TW. Each language in its own browser context, like each Argos screenshot, gets the right font.The likely cause is the renderer cache keyed by character only (
unicode_font_families_inWebSandboxSupportLinux::GetFallbackFontForCharacter). Real Chrome under Xvfb withfonts-noto-cjkshowed different shapes perlangon the same single page (run), so this may be specific to headless Chromium.Since Argos runs Chromium on Linux, where the Windows
system-uibug of #11727 doesn't occur, this coverage is limited. It's a draft so we can decide whether it's worth keeping.Argos: 1 of 293 screenshots changed, as expected:
/tests/pages/cjk-font-testsrenders its Han, kana and Hangul with Noto Sans CJK instead of WenQuanYi Zen Hei. The text and Infima snapshots don't change. The only other CJK text of the site is the hidden items of the navbar locale dropdown (中文(中国),한국어), now rendered with Noto Sans CJK SC and KR.Test links
Deploy preview: https://deploy-preview-13145--docusaurus-2.netlify.app/
Related issues/PRs
system-ui, strip it from--ifm-font-family-base#11727system-uifrom the Infima font stack.🤖 Generated with Claude Code